package com.dreamoo.common.pojo.dto;

import com.dreamoo.common.enums.LoginType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 山顶洞人郑某
 * @className UserLoginDto.java  用户登录DTO 支持 用户密码登录 qq邮箱验证登录 微信登录
 * @date 2025 05 08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户登录参数")
public class UserLoginDTO {

    @Schema(description = "用户名")
    private String userName;
    @Schema(description = "密码")
    private String passWord;
    @Email
    @Schema(description = "验证码(QQ邮箱登录需要验证码)")
    private String code;
    @NotNull
    @Schema(description = "登录类型",type = "LoginType")
    private LoginType loginType;
}
